<div class="view postview">
        <div class="art-postmetadataheader post_title" style="font-size: 12pt">
                <b><?php echo CHtml::encode($data->getAttributeLabel('title')); ?>:
                        <?php echo CHtml::link(CHtml::encode($data->title), array('view', 'id' => $data->id)); ?>
                </b>
        </div>
        <hr />

        <div class="post_content">
                <p>
                        <?php
                        if ($this->action->id == 'index')
                        {
                                $contentString = $data->content;
                                $contentString =mb_substr($contentString, 0,300,'utf-8');
                                echo $contentString."...";
                                echo "<br/><br/>";
                                echo "(单击标题阅读全文)...";
                        } else if ($this->action->id == 'view')
                                echo $data->content;
                        ?>
                </p>
        </div>

        <span class="accessary_info">
                <b><?php echo CHtml::encode($data->getAttributeLabel('tags')); ?>:</b>
                <?php echo CHtml::encode($data->tags); ?>

                <b><?php echo CHtml::encode($data->getAttributeLabel('status')); ?>:</b>
                <?php echo CHtml::encode(Lookup::item('PostStatus', $data->status)); ?>

                <b><?php echo Chtml::encode('Comments'); ?></b>
                <?php echo Chtml::encode($data->commentCount); ?>

                <b> <?php echo Chtml::encode('Views'); ?></b>
                <?php echo CHtml::encode($data->postviews->frequency); ?>

                <br />

                <b><?php echo CHtml::encode($data->getAttributeLabel('create_time')); ?>:</b>
                <?php echo CHtml::encode(date("r", $data->create_time)); ?>
                <br />

                <b><?php echo CHtml::encode($data->getAttributeLabel('update_time')); ?>:</b>
                <?php echo CHtml::encode(date("r", $data->update_time)); ?>
                <br />
        </span>


</div>
